import request from '@/utils/request';
import qs from 'qs';

// 查询细纱薪资报表
export function querySalaryReport(params) {
  return request({
    url: '/salaryReport/querySalaryReport',
    method: 'POST',
    data: params,
  });
}

// 公定参数列表
export function queryVarietyParameters(params) {
  return request({
    url: '/salaryReport/queryVarietyParameters',
    method: 'POST',
    data: params
  });
}

//添加公定参数
export function addVarietyParameters(cmd, params) {
  return request({
    url: '/salaryReport/' + cmd,
    method: 'POST',
    data: params
  });
}

//删除公定参数
export function deleteVarietyParameters(params) {
  return request({
    url: '/salaryReport/deleteVarietyParameters',
    method: 'POST',
    data: params
  });
}

// 查询模板字段归属
export function queryTemplateFieldAttribution(params) {
  return request({
    url: '/salaryReport/queryTemplateFieldAttribution',
    method: 'POST',
    data: params
  });
}

//修改模板字段归属
export function updateTemplateFieldAttribution(params) {
  return request({
    url: '/salaryReport/updateTemplateFieldAttribution',
    method: 'POST',
    data: params
  });
}



